/*
 * CunitRunner.c
 *
 *  Created on: Dec 3, 2012
 *      Author: Larry.Li
 */
#define TESTMODE

#include <stdio.h>
#include <stdlib.h>
#include <Cunit/Basic.h>
#include <Cunit/Cunit.h>

extern void BitBoardOpsTestSetUp(void);
extern void BitBoardTestSetUp(void);

#ifdef TESTMODE
int main(void) {
	if (CUE_SUCCESS != CU_initialize_registry())
		printf("ERROR in initialing BitBoardOpsTest Registry ERROR Code:%d",
				CU_get_error());

	BitBoardOpsTestSetUp();
	BitBoardTestSetUp();

	CU_basic_set_mode(CU_BRM_VERBOSE);
	CU_basic_run_tests();
	CU_cleanup_registry();
	return CU_get_error();
}
#endif
